package com.zhaopin.file;

import org.apache.commons.io.FileUtils;
import org.apache.pulsar.shade.org.apache.commons.collections.list.TreeList;

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Set;
import java.util.TreeSet;

/**
 * @author Administrator
 * @create 2019-08-07 17:38
 */
public class HandleFileSchema {

    public static void main(String[] args) throws IOException {
        List<String> list = FileUtils.readLines(new File(("E:\\data\\schema.xml")), "utf-8");
        Set<String> set = new TreeSet();
        for (String s : list) {
            set.add(s);
        }

        for (String s : set) {
            System.out.println(s);
        }
    }
}
